const mixin = {
  data() {
    return {
      MixinShowSearch: false, // 筛选折叠
      MixinSelectShow: true, // 筛选隐藏
      MixinLoading: false, // 加载
      MixinUserList: [], // 人员 List
      MixinSetLook: "", // 弹窗 状态  查看0 新增1 修改2 默认为空
    };
  },
  methods: {
    // 精准 查人员
    MixinRemoteMethodQuery(query) {
      let params = { pageSize: 20, name: query };
      this.$http.getUserList(params).then(({ result }) => {
        this.MixinUserList = result.records;
      });
    },
    // reset 查询
    MixinResetQuery() {
      this.queryParams = {
        pageNum: 1,
        pageSize: 10,
      };
    },
    // 查询 list
    MixinSearchList() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    MixinSetLoading(value) {
      this.MixinLoading = value;
    }
  },
};
export default mixin;
